gdkglcontext-win32-wgl.c: Fix Cairo fallback check
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Sep 2021 03:09:23 +0000 (11:09 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 22 Sep 2021 03:08:53 +0000 (11:08 +0800)
commit218a3e3d010a1705372f1b2360ea57c51384e5ba
tree65dd78992c74daa0c60a40b8fca51776b63668d2
parentd6d72998598667f7a398d69f424cd475257d71ec
gdkglcontext-win32-wgl.c: Fix Cairo fallback check

We were setting the WGL pixel format in GdkWin32Display too early, so the code
does not bail out correctly when we retry establishing the WGL context.

Fix this by pushing back setting the WGL pixel format only after it passes the
shader availability check.

Should fix issue #4257.
gdk/win32/gdkglcontext-win32-wgl.c